Skip to content

Rename build files from TARGETS to BUCK (group ID: -3631139791766519999) (#19429) - #19429

Open
bigfootjon wants to merge 1 commit into
mainfrom
export-D104414855
Open

Rename build files from TARGETS to BUCK (group ID: -3631139791766519999) (#19429)#19429
bigfootjon wants to merge 1 commit into
mainfrom
export-D104414855

Conversation

@bigfootjon

@bigfootjon bigfootjon commented May 8, 2026

Copy link
Copy Markdown
Member

Summary: Pull Request resolved: #19429

Reviewed By: bigfootjon

Differential Revision: D104414855

@bigfootjon
bigfootjon requested a review from rascani as a code owner May 8, 2026 23:21
Copilot AI review requested due to automatic review settings May 8, 2026 23:21
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label May 8, 2026
@meta-codesync

meta-codesync Bot commented May 8, 2026

Copy link
Copy Markdown
Contributor

@bigfootjon has exported this pull request. If you are a Meta employee, you can view the originating Diff in D104414855.

@github-actions

github-actions Bot commented May 8, 2026

Copy link
Copy Markdown

This PR needs a release notes: label

If your change should be included in the release notes (i.e. would users of this library care about this change?), please use a label starting with release notes:. This helps us keep track and include your important work in the next release notes.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "release notes: none"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.

@pytorch-bot

pytorch-bot Bot commented May 8, 2026

Copy link
Copy Markdown

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/19429

Note: Links to docs will display an error until the docs builds have been completed.

✅ No Failures

As of commit b3abd73 with merge base 4413a5c (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Migrates select Buck build definitions as part of renaming/migrating from TARGETS to BUCK, updating targets to use the build-file migration wrappers.

Changes:

  • Removed TARGETS files and added corresponding BUCK files for selected test directories.
  • Wrapped target declarations with fbcode_target / non_fbcode_target migration macros.
  • Updated a CUDA runtime nvcc_flags.bzl load path.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
backends/cuda/runtime/shims/tests/TARGETS Removed legacy TARGETS file content.
backends/cuda/runtime/shims/tests/BUCK Added BUCK file using migration wrappers to invoke common target definitions.
backends/cuda/runtime/TARGETS Converted runtime.* targets to fbcode_target wrappers; updated nvcc flags load path.
backends/cuda/TARGETS Converted Python targets to fbcode_target wrappers.
backends/cortex_m/test/TARGETS Removed legacy TARGETS with a python unittest and common targets.
backends/cortex_m/test/BUCK Added merged BUCK file containing migration wrappers + the prior unittest definition.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.


oncall("executorch")

fbcode_target(_kind = define_common_targets,)
Comment on lines +22 to +37
load("@fbcode_macros//build_defs:python_unittest.bzl", "python_unittest")
load("targets.bzl", "define_common_targets")

fbcode_target(_kind = python_unittest,
name="test_replace_quant_nodes",
srcs=[
"test_helpers_passes_utils.py",
"test_replace_quant_nodes.py",
],
deps=[
"//pytorch/ao:torchao", # @manual
"//caffe2:torch",
"//executorch/backends/cortex_m/passes:replace_quant_nodes_pass",
"//executorch/backends/cortex_m/ops:ops",
],
)
Comment on lines +14 to +23
# !!!! fbcode/executorch/backends/cortex_m/test/TARGETS was merged into this file, see https://fburl.com/workplace/xl8l9yuo for more info !!!!

# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

load("@fbcode_macros//build_defs:python_unittest.bzl", "python_unittest")
load("targets.bzl", "define_common_targets")
…99) (#19429)

Summary: Pull Request resolved: #19429

Reviewed By: bigfootjon

Differential Revision: D104414855
@meta-codesync meta-codesync Bot changed the title Rename build files from TARGETS to BUCK (group ID: -3631139791766519999) Rename build files from TARGETS to BUCK (group ID: -3631139791766519999) (#19429) May 9, 2026
@bigfootjon
bigfootjon force-pushed the export-D104414855 branch from f2f9248 to b3abd73 Compare May 9, 2026 01:15
@github-actions

github-actions Bot commented Jul 9, 2026

Copy link
Copy Markdown

Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as Stale.
Feel free to remove the Stale label if you feel this was a mistake.
If you are unable to remove the Stale label please contact a maintainer in order to do so.
If you want the bot to never mark this PR stale again, add the no-stale label.
Stale pull requests will automatically be closed after 30 days of inactivity.

@github-actions github-actions Bot added the Stale PRs inactive for over 60 days label Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported meta-exported Stale PRs inactive for over 60 days

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants